<template>
  <router-view></router-view>
  <el-backtop :right="100" :bottom="100" />
  <window
    v-for="task in Task.list"
    :key="task.id"
    :title="task.title"
    :type="task.type"
    :member-id="task.memberId"
    :lower-caution="task.lowerCaution"
    :upper-caution="task.upperCaution"
    :lower-critical="task.lowerCritical"
    :upper-critical="task.upperCritical"
    :current-value="task.currentValue"
    :units="task.units"
    :is-active="task.isActive"
    :is-minimize="task.isMinimize"
    :is-maximize="task.isMaximize"
    :mini-width="task.miniWidth"
    :mini-left="task.miniLeft"
    @active="Task.handleActive(task)"
    @close="Task.handleClose(task)"
    @minimize="Task.handleMinimize(task)"
    @maximize="Task.handleMaximize(task)"
  />
</template>

<script setup lang="ts">
import { Task } from '@/utilities/windowTask';
</script>

<style lang="scss"></style>
